#pragma once

#include <vector>
#include <stdint.h>

class Range
{
public:
    template<typename T>
    static std::vector<T> range(T start, T end, T step = 1)
    {
        auto size = (end - start - (step>0?1:-1)) / step + 1;
        std::vector<T> ret(size);
        T index = start;
        for(auto &item:ret)
        {
            item = index;
            index += step;
        }
        return ret;
    }
};
